package com.samuel.bean;


import org.springframework.context.annotation.Bean;

/**
 * @date:2017/11/22
 * @time: 10:41
 * @author:zhaoyang
 * @desc:Bean的初始化和销毁
 **/
public class BeanWayService {

  public void init(){
      System.out.println("@Bean-init-Method");
  }


  public BeanWayService(){
      super();
      System.out.println("初始化构造函数BeanWayService");
  }

  public void destroy(){
      System.out.println("@Bean-destroy-Method");
  }
}
